package com.dhnsoft.boot3.rpc.controller;

import com.dhnsoft.boot3.rpc.service.ExpressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author dhn
 * @version 1.0
 * @date 2023-09-12 17:43
 * @Desc
 */
@RestController
public class ExpressController {

    @Autowired
    ExpressService expressService;

    @GetMapping("getExpress")
    public Mono<String> getExpress(@RequestParam("no") String no){
        Mono<String> express = expressService.express(no);
        return express;
    }
}
